package com.wy.soap;

import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

import com.wy.base.AbstractWizardPage;
import com.wy.util.PluginUtils;

public class SoapWizardPage extends AbstractWizardPage {

	public Text nameSpaceText;

	public SoapWizardPage(ISelection selection) {
		super("wizardPage");
		setTitle("Spring Soap Endpoint Wizard");
		setDescription("Spring Soap Endpoint Class Definition");
		this.selection = selection;
	}

	@Override
	public void additionalControl(Composite parent, Composite self) {
		new Label(self, 0);
		Label label = new Label(self, SWT.NULL);
		label.setText("&Name Space URI:");

		nameSpaceText = PluginUtils.createText(self, defaultTextModifyListenter());
		new Label(self, 0);
	}

	public void initialize() {
		super.initialize();
		nameSpaceText.setText("http://oneclicklabs.io/");
	}

	public String getNameSpaceName() {
		return nameSpaceText.getText();
	}
}